package com.wlient.basic.Thread.SysTask;

/**
 * Created on 2018/5/31
 *
 * @author wang.teng
 */
public class TestSatic {
    public static void main(String[] args) {
        for (int i = 0; i < 10; i++) {
            SysTaskStatic sysTaskStatic = new SysTaskStatic();
            Thread thread = new Thread(new Runnable() {
                @Override
                public void run() {
                    sysTaskStatic.doSomeThing();
                    sysTaskStatic.doSomeThing2();
                }
            });
            thread.setName(i + "-name");
            thread.start();
        }

    }
}
//static,this:类锁
//方法，class：对象锁